package com.nsgf.library.ui.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;
import com.nsgf.library.R;
import com.nsgf.library.data.bean.WaterInfoListBean;
import com.nsgf.library.databinding.ItemNsgfFlowBinding;

/**
 * 流量数据适配器
 */
public class FlowListAdapter extends SimpleDataBindingAdapter<WaterInfoListBean.FlowBean, ItemNsgfFlowBinding> {

    public FlowListAdapter(Context context) {
        super(context, R.layout.item_nsgf_flow, DiffUtils.getInstance().getFlowItemCallback());
    }

    @Override
    protected void onBindItem(ItemNsgfFlowBinding binding, WaterInfoListBean.FlowBean item, RecyclerView.ViewHolder holder) {
        binding.setVm(item);
    }
}

